Revive dependency recompilation test
authorAleksey Kladov <aleksey.kladov@gmail.com>
Thu, 16 Feb 2017 11:18:55 +0000 (14:18 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Thu, 16 Feb 2017 11:19:40 +0000 (14:19 +0300)
tests/path.rs

index b0d9adb265885fd5b7b7995e4d53d40cd2de41d6..1b4594fe69e44f8527dcbcaa960f5bd57a03aa25 100644 (file)
@@ -297,9 +297,17 @@ fn no_rebuild_dependency() {
                                              in [..]\n",
                                             p.url(),
                                             p.url())));
-    // This time we shouldn't compile bar
+
+    p.change_file("src/foo.rs", r#"
+        extern crate bar;
+        fn main() { bar::bar(); }
+    "#);
+    // Don't compile bar, but do recompile foo.
     assert_that(p.cargo("build"),
-                execs().with_stdout(""));
+                execs().with_stderr("\
+                     [COMPILING] foo v0.5.0 ([..])\n\
+                     [FINISHED] dev [unoptimized + debuginfo] target(s) \
+                     in [..]\n"));
 }
 
 #[test]